<template>
  <div class="home">
    <div>
      <Banner />
    </div>
    <div>
      <SearchAndPageList />
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, onMounted } from "vue";
export default defineComponent({
  name: "Home",
});
</script>
<script lang="ts" setup>

//组件1:轮播图组件
import Banner from "@/components/banner/index.vue";
//组件2:医院分页列表与搜索组件
import SearchAndPageList from "@/components/searchAndPageList/index.vue";

import { reqGet } from "@/api/apitest";

onMounted(async () => {
  try {
    console.log("onMounted");
    const res = await reqGet();
    console.log(res);
  } catch (error) {}
});
</script>

<style lang="less" scoped></style>
